package cn.kgc.client;

import cn.kgc.base.entity.CartSkuInfo;
import cn.kgc.commons.vo.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: 石浩杰
 * @date: 2022-12-16 10:44
 */
@Component
@Slf4j
public class CartSkuInfoFeignClientFallback implements CartSkuInfoFeignClient{
    @Override
    public Result<CartSkuInfo> getCartSkuInfo(Long skuId) {
        log.warn("购物车模块获得商品信息，服务降级,商品的id:{}",skuId);
        return Result.error(null,"http://mall-pms/pms/SkuInfo/getCart",200,"errot");
    }
}
